use redius::client::RedisClient;

pub(crate) async fn hset(client: &RedisClient) {
    match client.hash_hset("myhash", "age", "12").await {
        Ok(num) => {
            log::info!("len = {num}");
        }
        Err(err) => {
            log::error!("{err}");
        }
    }
}

pub(crate) async fn hgetall(client: &RedisClient) {
    match client.hash_hgetall("myhash").await {
        Ok(num) => {
            log::info!("{num:?}");
        }
        Err(err) => {
            log::error!("{err}");
        }
    }
}